package cn.edu.sgu.www.mhxysy.entity.zuoqi;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 坐骑
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("zuoqi")
public class Zuoqi implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 坐骑名字
	 */
	@ApiModelProperty(value = "坐骑名字")
	private String name;

	/**
	 * 角色ID
	 */
	@ApiModelProperty(value = "角色ID")
	private String roleId;

	/**
	 * 坐骑类型ID
	 */
	@ApiModelProperty(value = "坐骑类型ID")
	private Integer categoryId;

	/*
	 * 开启状态
	 * 0-未开启；1-已开启
	 */
	@ApiModelProperty(value = "开启状态")
	private Integer openStatus;

	/**
	 * 生成坐骑ID
	 * @return String
	 */
	public String uuid() {
		return IdentifierPrefixes.PREFIX_ZUOQI + StringUtils.uuid();
	}

}